package com.zangs.emqx_expand.emqx.domain;

import lombok.Getter;
import lombok.Setter;

/**
 * heng
 */
@Setter
@Getter
public class EmqxAcl {
    /**
     * ${clientid}: 客户端的 ID
     * ${username}: 客户端登录时用的用户名
     * ${peerhost}: 客户端的源 IP 地址
     * ${proto_name}: 客户端使用的协议名称。例如 MQTT，CoAP 等
     * ${mountpoint}: 网关监听器的挂载点（主题前缀）
     * ${action}: 当前执行的动作请求，例如 publish，subscribe
     * ${topic}: 当前请求想要发布或订阅的主题（或主题过滤器）
     * ${qos}: 当前请求想要发布或订阅的消息 QoS
     * ${retain}: 当前请求想要发布的消息是否为保留消息
     */
  private String  clientid;
  private String  username;
  private String  peerhost;
  private String  proto_name;
  private String  mountpoint;
  private String  action;
  private String  topic;
  private String  qos;
  private String  retain;

    @Override
    public String toString() {
        return "EmqxAcl{" +
                "clientid='" + clientid + '\'' +
                ", username='" + username + '\'' +
                ", peerhost='" + peerhost + '\'' +
                ", proto_name='" + proto_name + '\'' +
                ", mountpoint='" + mountpoint + '\'' +
                ", action='" + action + '\'' +
                ", topic='" + topic + '\'' +
                ", qos='" + qos + '\'' +
                ", retain='" + retain + '\'' +
                '}';
    }
}
